<?php

/**
 * User: @lose
 * Date: 2021/12/16
 * Time: 10:43 上午
 */

namespace Buu\Modules\Eolinker\Models;

use Illuminate\Database\Eloquent\Model;

class AmsApiTag extends Model
{
    protected $table = 'eo_ams_api_conn_tag';

    protected $connection = 'eolinker';

    public static function getApiTagInfo($apiId)
    {
        $apiTag = AmsApiTag::where('apiID', $apiId)->first();
        if ($apiTag) {
            return $apiTag->toArray();
        }
        return [];
    }
}